#ifndef SERIAL_HEADER
#define SERIAL_HEADER

struct serial_dev {
	HANDLE hSerial;
};

int init_serial(struct serial_dev *, char *);
void close_serial(struct serial_dev *);
size_t write_ser(struct serial_dev *, void *, size_t);
size_t read_ser(struct serial_dev *, void *, size_t);
void ser_flush(struct serial_dev *);

#endif
